home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 9 / Night Owl CD-ROM (NOPV9) (Night Owl Publisher) (1993).ISO / 050a / snr53b.zip / SPC2TAB.S < prev    next >
Text File  |  1993-05-30  |  862b  |  22 lines

  1. \  SPC2TAB.S
  2. \  demotest sample table
  3.  
  4. \  Convert three (3) or more adjacent spaces into tab codes.
  5.  
  6. \  The tab codes we'll use here are pseudo-codes ([tab]). You might wish 
  7. \  to use some typesetting system command, such as "[tb" or even replace 
  8. \  with an ASCII tab character (\09)
  9.  
  10. \  This table also converts four or more adjacent periods (....) into a
  11. \  dot-leader code, if typesetting is your bag. Four or more hyphens (----)
  12. \  or low-line dashes (____) are converted into a horizontal rule command.
  13.  
  14. \  The following equation says: three spaces equals a tab code, and then
  15. \  ignore consecutive spaces
  16.  
  17. \20\20\20=[tab]*ic\20
  18. ....=[ldr]*ic.       \ 4 dots to a leader code, ignore other '.'
  19. ----=[rule]*ic-_     \ 4 hyphens to a rule, ignore other '-' or '_'
  20. ____=[rule]*ic-_     \ 4 underlines to a rule, ignore other '-' or '_'
  21.  
  22.